package demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Text {
    public static void main(String[] args)
            throws CloneNotSupportedException {
        Person person1 =new Person(10,"zhangsang");
        Person person2 =(Person) person1.clone();
        person1.m.money =99.9;
        System.out.println(person1.m.money);
        System.out.println(person2.m.money);
//        System.out.println(person1);
//        System.out.println(person2);
    }
}
